package com.zzptc.myk.shop.dao;

import com.zzptc.myk.shop.vo.Category;

import java.sql.SQLException;
import java.util.List;

public interface CategroryDaoI {

	//获取所有的种类并分页显示
	List<Category> getProduct(int page , int pageCount)throws SQLException;
	//获取所有的种类
		List<Category> getAll()throws SQLException;
		//新增一个种类
	//	boolean insert(Category category)throws SQLException;
		//删除一个种类
		int delete(int id,int parentid)throws SQLException;
		//修改分类表
		int updateProductClass(int id,Category category)throws Exception;
		//添加分类
		boolean insert(Category category,int id)throws SQLException;
}
